package com.luke.exercise;

import org.junit.Test;

/**
 * Created by lusen on 2016/12/28.
 */
public class GC3 {

    @Test
    public void testPretenureSizeThreshold() {
        byte[] allocation;
        allocation = new byte[4 * 1024 * 1024];
    }

    @Test
    public void testTenuringThreshold() {
        byte[] allocation1,allocation2,allocation3;
        allocation1 = new byte[1024 * 1024 / 4];
        allocation2 = new byte[1024 * 1024 * 4];
        allocation3 = new byte[1024 * 1024 * 4];
        allocation3 = null;
        allocation2 = new byte[1024 * 1024 * 4];
    }


}
